getApplicationStyle Method |
This method retrieves the style of the current application (ApplicationStyle).
Syntax
styleID.getApplicationStyle(oAppWindow)
Parameters
Parameter |
Description |
---|---|
oAppWindow |
Optional. Object that specifies the application window for which the style is to be retrieved. If not specified, then the style is retrieved for the current application. |
Return Value
Returns a string that denotes the current ApplicationStyle.
Remarks
Application styles are styles that are specific for one particular application. When an application style is applied, it automatically inherits the system style. In other words, first the system style will be applied and then the application style will be applied. Style rules from the system style sheet can be overridden with a new style rule with an identical name in the application style sheet.
Example
The following example shows how this method is used.
<!-- style definition --> <div cordysType="wcp.library.ui.Style" id="style" > ... </div> <!-- Method invocation --> <input type="button" value="Get application style" onclick="application.notify('application style : ' + style.getApplicationStyle(application)">